package com.facesdk;

public final class FaceFeatureProcessor {
	private static final String TAG = "FaceFeatureProcessor";

	static {
		System.loadLibrary("GetFaceFeature");
		System.loadLibrary("ImageProcess");
		System.loadLibrary("FD_Feature");
		FaceFeatureInit();
	}

	public native static void FaceFeatureInit();

	public native static void FaceFeatureUninit();

	//
	public native static byte[] GetFeatureCode(byte[] imageData, int width,
			int height, int leftx, int lefty, int rightx, int righty);

	public native static byte[] GetFeatureCodeV2(byte[] imageData, int width,
			 int height, int leftx, int lefty, int rightx, int righty);

	public native static String GetFeatureCodeB64(byte[] imageData,int width,
			int height,int leftx,int lefty,int rightx,int righty);

	public native static String GetFeatureCodeB64V2(byte[] imageData,int width,
						int height,int leftx,int lefty,int rightx,int righty);

	public native static double CompareCode(byte[] featureA,
			byte[] featureB, int vecdistType);

	public native static double CompareCodeV2(byte[] featureA,
			 byte[] featureB, int vecdistType);
	
	public native static byte[] ConvertCode(byte[] featureV1);
	
	public static final int FEATURE_V1_LENGTH=210*4;
}
